package test;

import java.util.List;

import com.bj58.ecdata.redis.JedisX;

/**
 * @author zhaoxiang
 *
 */
public class RedisCache {
	private static JedisX cache;
//	private static Logger log = LoggerFactory.getLogger(RedisCache.class);

	static{
//		cache = (JedisX)SpringContextUtil.getBean("cachePool");
//		cache = (JedisX)SpringUtils.getInstance().getBean("cachePool");
	}
	
	public static List<String> getCateListByBusinessType(String businessType) {
		String key = businessType+"_income_cate_list";
		return cache.lrangeString(key, 0, -1);
	}
}
